package com.atguigu.aiproject.constant;

public class RedisKeyConstant {
    private RedisKeyConstant(){}
    // 作品详情缓存  - hash结构
    public static final String CREATION_DETAIL_KEY = "creation:detail:"; //
    // 用户点赞记录 - Set结构或ZSet结构
    public static final String CREATION_LIKED_USERS_KEY = "creation:liked:users:";
    //用户未点赞集合 -Set
    public static String CREATION_USER_CHECKED_KEY = "creation:user_checked:";
    // 用户浏览记录 -BitMap
    public static final String CREATION_VIEW_BITMAP_KEY = "creation:view:bitmap:";


    // 用户点赞的作品集合 - Set结构
    public static final String USER_LIKED_CREATIONS_KEY = "user:liked:creations:";
    // 用户点赞分布式锁
    public static final String CREATION_LIKE_LOCK_KEY = "lock:creation:like:";

    public static final String USER_FOLLOW_KEY = "user:follow:";
    // 用户id--jwt
    public static final String USER_JWT_KEY = "user:jwt:";
    // jwt--用户信息
    public static final String JWT_USER_KEY = "jwt:user:";
    // 用户id--用户信息
    public static final String USER_INFO_KEY = "user:info:";
}
